package com.rfsp.common.pojo.vo;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.rfsp.common.util.JsonUtil;

public class DictVO {
	
	String code;
	String text;
	
	public DictVO(String code, String text) {
		this.code = code;
		this.text = text;
	}

	public DictVO() {
	}

	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getText() {
		return text;
	}
	public String getMsg() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}


    public String toString(){
        try {
            return JsonUtil.toJson(this);
        } catch (JsonProcessingException e) {
            return text+code;
        }
    }
	
}
